/*
 * test.h
 *
 * Created: 9/24/2013 5:35:33 PM
 *  Author: Tim
 */ 


#ifndef TEST_H_
#define TEST_H_


#include <inttypes.h>
#include "../board/board.h"

#include "../features/adc/adc.h"
#include "../features/dac/dac.h"
#include "../features/dio/dio.h"
#include "../features/enc/enc.h"
#include "../features/tmr/tmr.h"

#include "../communication/comPort.h"


#include "../packets/handlers/adcPacketHandler.h"
#include "../packets/handlers/dacPacketHandler.h"
#include "../packets/handlers/dioPacketHandler.h"
#include "../packets/handlers/encPacketHandler.h"
#include "../packets/handlers/genPacketHandler.h"
#include "../packets/handlers/pwmPacketHandler.h"
#include "../packets/handlers/superPacketHandler.h"
#include "../packets/handlers/tmrPacketHandler.h"

#include "../packets/structs/msgHeaderDefs.h"
#include "../packets/structs/adcPacketStructs.h"
#include "../packets/structs/dacPacketStructs.h"
#include "../packets/structs/dioPacketStructs.h"
#include "../packets/structs/encPacketStructs.h"
#include "../packets/structs/genPacketStructs.h"
#include "../packets/structs/pwmPacketStructs.h"
#include "../packets/structs/tmrPacketStructs.h"

#include "../packets/CRC.h"

void seedADCInit(uint8_t ACHM,uint8_t GAIN);
void seedDacEnable(uint8_t DCHM);
void seedDigitalInEnable();
void seedDigitalOutEnable();
void seedEncInit(uint8_t ENCN,uint8_t INDX,uint8_t PLOC,uint8_t ABS,uint8_t EDFL, uint16_t ERES);
void seedTmrSetFreq(uint16_t freq);
void seedServoEnable(uint8_t enables[4]);
void seedMotorEnable(uint8_t enables[4]);
void seedOutputSuperPacket(uint16_t analogOut[],uint16_t digSet, uint16_t digClr);
void seedActuatorSuperPacket(uint16_t motorVal[],uint16_t servoVal[]);
#endif /* TEST_H_ */